//
//  MyZhuoXinLSViewControllerNMNc.m
//
//
//  Created by mac on 15/1/11.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "MyZhuoXinLSViewControllerNMNc.h"
#import "MyZhuoXinButton.h"
#import "ManageViewController.h"
#import "MyLoanTableViewController.h"
#import "ZuZhiViewController.h"
#import "HeZhuoSheViewController.h"
#import "MyDataTableViewController.h"
#import "ZuzhiDetail.h"
#import "HeZhuoSheViewController.h"
#import "ProductPlanTableViewController.h"
#import "SNSetViewController.h"
/**
 小农 我的卓信控制器
 */
@interface MyZhuoXinLSViewControllerNMNc ()

@end

@implementation MyZhuoXinLSViewControllerNMNc


- (IBAction)adminBtnClick:(UIButton *)sender {
    //跳到用户信息
    ZuzhiDetail *vc = [[ZuzhiDetail alloc]init];
    vc.number = @"农场";
    [self.navigationController pushViewController:vc animated:YES];
}


/**
 生产计划
 */
- (IBAction)LoadBtnClick:(MyZhuoXinButton *)sender {
    
    ProductPlanTableViewController *vc = [[ProductPlanTableViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];

}

/**
 我的贷款

 */
- (IBAction)myloan:(MyZhuoXinButton *)sender {
    MyLoanTableViewController *MC = [[MyLoanTableViewController alloc]init];
    [self.navigationController pushViewController:MC animated:YES];
}



/**
 我的农资

 @param sender sen
 */
- (IBAction)fundBtnClick:(MyZhuoXinButton *)sender {
    ManageViewController *MC = [[ManageViewController alloc]init];
    MC.title = @"农资管理";
    MC.manageId = sender.tag;
    
    [self.navigationController pushViewController:MC animated:YES];
}

/**
 我的


 */
- (IBAction)technologyBtnClick:(MyZhuoXinButton *)sender {
    ManageViewController *MC = [[ManageViewController alloc]init];
    MC.manageId = sender.tag;
    MC.title = @"农技管理";
    
    [self.navigationController pushViewController:MC animated:YES];
}


- (IBAction)MachineBtnClick:(MyZhuoXinButton *)sender {
    ManageViewController *MC = [[ManageViewController alloc]init];
    MC.title = @"农机管理";
    
    MC.manageId = sender.tag;
    
    [self.navigationController pushViewController:MC animated:YES];
}




- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"设置"] style:UIBarButtonItemStyleDone target:self action:@selector(rightBtnClcik)];
    self.navigationController.navigationBar.backgroundColor = [UIColor clearColor];
    
    
    self.navigationItem.title = @"我的卓信";
    
    [self initViews];
}

- (void)initViews
{
    
    
    
    
    
    
}


-(void)rightBtnClcik{
    
    UIViewController *setSb = [[SNSetViewController alloc]init];
//    [[UIStoryboard storyboardWithName:@"ZXSetTableViewController" bundle:nil] instantiateInitialViewController];
    
    [self.navigationController pushViewController:setSb animated:YES];
    
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
